package chapter02;

import java.util.Scanner;

public class department {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入新员工的姓名:");
        String name = sc.next();
        System.out.println("请输入新员工应聘的语言:");
        String language=sc.next();
        switch(language) {
            case "Java":
                System.out.println(name+"被分配到java程序开发部门");
                break;
            case "C#":
                System.out.println(name+"被分配到C#程序开发部门");
                break;
            case "asp.net":
                System.out.println(name+"被分配到asp.net程序开发部门");
                break;
            case "前端":
                System.out.println(name+"被分配到前端程序开发部门");
                break;
            default:
                System.out.println("我们公司没有与您语言相匹配的部门");
                break;
        }
    }
}
